package com.techm.carpool.customviews;

/**
 * Created by rv00118722 on 7/14/2014.
 */

import android.app.AlertDialog;
import android.content.Context;

public class CustomAlertDialog extends AlertDialog {

    public CustomAlertDialog(Context context, String title, String message) {
        super(context);
        setTitle(title);
        setMessage(message);
    }

    public void addPositiveButton(CharSequence text, OnClickListener listener) {
        setButton(BUTTON_POSITIVE, text, listener);
    }

    public void addNegativeButton(CharSequence text, OnClickListener listener) {
        setButton(BUTTON_NEGATIVE, text, listener);
    }

    public void addNeutralButton(CharSequence text, OnClickListener listener) {
        setButton(BUTTON_NEGATIVE, text, listener);
    }

}
